#include <iostream>
#include <QtCore/QCoreApplication>
#include <QProcess>
#include <QDebug>

#include "../RmLogClient/RmLogClient.h"

using namespace std;

int main(int argc, char *argv[])
{
	QCoreApplication a(argc, argv);

	qDebug() << "start run..." << endl;

	QProcess * process = new QProcess();
	if (process)
	{
#if _DEBUG
		QString process_path = "D:/RMLog/RmLog/x64/Debug/RmLogServer.exe";
#else 
		QString process_path = "D:/RMLog/RmLog/x64/Release/RmLogServer.exe";
#endif
		qDebug() <<  "start run..." << process_path << endl;
		process->startDetached(process_path);
	}

	int moduleNo = 0;
	QString info = "Test info";

	RMLOG(moduleNo, info);

	return a.exec();
}
